package com.cx.controller.fhy;

import com.cx.pojo.Gametype;
import com.cx.service.fhy.GameTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpSession;
import java.util.List;

@Controller
@RequestMapping("gametype")
public class GameTypeController {
    @Autowired
    private GameTypeService gameTypeService;

    @RequestMapping("selectall")
    @ResponseBody
    public List<Gametype> selectAll(HttpSession session){
        List<Gametype> gameList = gameTypeService.selectAll();
        return gameList;
    }
}
